// Copyright 2012 Google Inc. All Rights Reserved.

package com.google.superlists.model;

/**
 * Representation of the data passed on a tasklist action.
 *
 * @author sven@google.com (Sven Mawson)
 */
public class TaskListData {

  /**
   * Returns a data object parsed from the given json string.
   */
  public static TaskListData fromJson(String json) {
    return JsonUtil.fromJson(json, TaskListData.class);
  }

  /** The tasklist that the action is occurring on. */
  public String id;

  /** Public constructor for GSON. */
  public TaskListData() {}

  /**
   * Converts a data object to json.
   */
  public String toJson() {
    return JsonUtil.toJson(this);
  }
}
